<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <style type="text/css">
        #div1{

            align-items: center;
            text-align: center;
            justify-content: center;
        }

    </style>
</head>
<body>
<div id="div1">
    <form action="date.php" method="post" enctype="multipart/form-data">
        <br>
        头像:<input type="file" name="file" id="" value="" />
        <br>
        <input type="submit" value="上传头像" align="center"/>
    </form>
</div>

</body>
</html>